
#pragma once

#include "Input.h"

#include "DirectInputDevice.h"

class CDIJoystick:public CDirectInputDevice
{
public:

	CDIJoystick();
	~CDIJoystick();

	virtual bool Init( HWND hWnd );
	virtual bool Update();

	int GetButtonCount();

	bool IsButtonPressed( int btn );
	bool IsButtonUp( int btn );
	bool IsButtonDown( int btn );

	LONG GetAxisX();
	LONG GetAxisY();
	LONG GetAxisZ();

	DIJOYSTATE2 m_State;
	DIJOYSTATE2 m_StateLast;
};